import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class MyCustomCliper extends CustomClipper<Path> {

  @override
  Path getClip(Size size) {


    Path path = Path();

    Rect topRect=Rect.fromLTRB(0, 0, size.width, 1.h);

    Rect bottomRect=Rect.fromLTRB(0, size.height-1.h, size.width, size.height);

    path.addRect(topRect);
    path.addRect(bottomRect);


    return path;
  }

  @override
  bool shouldReclip(covariant CustomClipper<Path> oldClipper) {
    return true;
  }
  
}